﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyChungCu_V
{
    public partial class dlgAddStaff : Form
    {
        public dlgAddStaff()
        {
            InitializeComponent();
        }
        public Guid MaNV
        {
            get { return Guid.Parse(mtxtMaNV.Text); }

        }
        public string TenNV
        {
            get { return mtxtTenNV.Text; }

        }

        public int Tuoi
        {
            get { return int.Parse(mtxtTuoiNV.Text); }

        }
        public string ChucVu
        {
            get { return cboChucvu.Text; }
        }
        public string SoCMT
        {
            get { return mtxtSoCMT.Text; }

        }
        public string SoDT
        {
            get { return mtxtSoDT.Text; }

        }
        public bool GioiTinh
        {
            get
            {
                if (GioiTinh == false)
                    return bool.Parse(rdbFemale.Text);
                else
                    return bool.Parse(rdbMale.Text);
            }

        }
       
        public string DanToc
        {
            get { return cboDantoc.Text; }

        }
        public string TonGiao
        {
            get { return cboTongiao.Text; }
        }

        private void label7_Click(object sender, EventArgs e)
        {
                    }

        private void btOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void dlgAddStaff_Load(object sender, EventArgs e)
        {

        }

        private void txtMaNV_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
